package cn.edu.ctbu.simplescoremanagementsystem.service;

import cn.edu.ctbu.simplescoremanagementsystem.domain.SC;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface SCService {
    public SC findByID(Integer id);

    public List<SC> findAll();

    public SC insert(SC sc);

    public SC update(SC sc);

    public SC Delete(Integer id) throws Exception;

    public Page<SC> getByPage(Pageable pageable);

    public Page<SC> getByPage(Example<SC> scExample, Pageable pageable);
}
